package cn.trda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.trda.mapper.AsUserMapper;
import cn.trda.pojo.User;
import cn.trda.pojo.UserExt;
import cn.trda.service.Userservice;

@Service
public class UserServiceImpl implements Userservice {

	@Autowired
	 private AsUserMapper asUserMapper;
	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return asUserMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(User record) {
		// TODO Auto-generated method stub
		return asUserMapper.insert(record);
	}

	@Override
	public int insertSelective(User record) {
		// TODO Auto-generated method stub
		return asUserMapper.insertSelective(record);
	}

	@Override
	public User selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return asUserMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(User record) {
		// TODO Auto-generated method stub
		return asUserMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(User record) {
		// TODO Auto-generated method stub
		return asUserMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<User> selectByusercode(String usercode) {
		// TODO Auto-generated method stub
		return asUserMapper.selectByusercode(usercode);
	}

	@Override
	public User selectByUser(User user) {
		// TODO Auto-generated method stub
		return asUserMapper.selectByUser(user);
	}

	@Override
	public List<User> getPagedUsers(UserExt user) {
		// TODO Auto-generated method stub
		return asUserMapper.getPagedUsers(user);
	}

	@Override
	public int getPagedCount(UserExt user) {
		// TODO Auto-generated method stub
		return asUserMapper.getPagedCount(user);
	}

}
